package com.jdk;

import java.net.InetSocketAddress;

import com.sun.net.httpserver.HttpServer;

public class HttpserverDemo {

	public static void main(String[] args) throws Exception {
		HttpServer server = HttpServer.create();
		InetSocketAddress addr = new InetSocketAddress(9999);
		server.bind(addr , 0);
		server.start();
	}

}
